<ui:composition template="/pages/template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">

	<ui:define name="page">
	
		<h2>Liste clients</h2>
	
		<h:dataTable value="#{clientBean.clients}" border="1" var="client">
	
			<h:column>
				<f:facet name="header">id</f:facet>
	    		#{client.id}
	    	</h:column>
	
			<h:column>
				<f:facet name="header">Nom</f:facet>
	    		#{client.nom}
	    	</h:column>
	
			<h:column>
				<f:facet name="header">Prénom</f:facet>
	    		#{client.prenom}
	    	</h:column>
	
			<h:column>
				<f:facet name="header">Modifier</f:facet>				
				<h:form>
					<h:link outcome="modifierClientForm.xhtml" value="Modifier">
						<f:param name="idClient" value="#{client.id}" />
					</h:link>
				</h:form>
			</h:column>
	
			<h:column>
				<f:facet name="header">Supprimer</f:facet>
				<h:form>
					<h:link outcome="supprimerClient.xhtml" value="Supprimer">
						<f:param name="idClient" value="#{client.id}" />
					</h:link>
				</h:form>
			</h:column>
	
		</h:dataTable>
	
	</ui:define>
</ui:composition>